#!/bin/sh
if [ -z "$S" ] ; then
	echo "error: S is not set, did you source config?"
	exit 1
fi
pkgdir="$S"/pkg
if [ ! -d "$pkgdir" ] ; then
	echo "error: cannot find pkg dir $pkgdir"
	exit 1
fi
find "$pkgdir" | grep "$@" | sed 's@'"$pkgdir/"'@@g' -
